<html xmlns:tomboy="http://beatniksoftware.com/tomboy" xmlns:link="http://beatniksoftware.com/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size"><head><META http-equiv="Content-Type" content="text/html; charset=utf-8"><title>install express</title><style type="text/css">
        
	body {  }
	h1 { font-size: xx-large;
     	     font-weight: bold;
     	     border-bottom: 1px solid black; }
	div.note {
		   position: relative;
		   display: block;
		   padding: 5pt;
		   margin: 5pt; 
		   white-space: -moz-pre-wrap; /* Mozilla */
 	      	   white-space: -pre-wrap;     /* Opera 4 - 6 */
 	      	   white-space: -o-pre-wrap;   /* Opera 7 */
 	      	   white-space: pre-wrap;      /* CSS3 */
 	      	   word-wrap: break-word;      /* IE 5.5+ */ }
	</style></head><body><div class="note" id="install express"><a name="install express"></a><a style="color:#204A87" href="../mongodb/Install.html">install</a><h1> express</h1>
1. 首先建立一个项目文件夹
	mkdir helloworld
2. 在文件夹下面创建一个依赖包配置文件package.json
 	{
  		"name": "hello-world",
  		"description": "hello world test app",
  		"version": "0.0.1",
  		"private": true,
  		"dependencies": {
    			"express": "3.x"
  		}
	}
	其中当版本号3.x，可以通过这条命令获取
	npm info express version
3. 安装express依赖项
	（sudo）npm <a style="color:#204A87" href="../mongodb/Install.html">install</a>
</div></body></html>